<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php if ($register_page == 1) : ?>

  <section class="register">
    <ul class="price row-fluid">
      <li class="span3 offset3">
        <h2>Camping Pass</h2>
        
        <div class="top">
          <a href="#">
            € 65
          </a>
        </div>
        
        <div class="description">
          <ul>
            <li>Access to the camping area
            <li>Spend the night with your friends
            <li>Stay close to the event
          </ul>
          
          <a href="<?php echo site_url('register/2?ticket=camping') ?>" class="btn btn-primary">Register</a>
        </div>
      </li>
      
      <li class="span3">
        <h2>Day Pass</h2>
        
        <div class="top">
          <a href="#">
            € 35
          </a>
        </div>
        
        <div class="description">
          <ul>
            <li>No access to the camping area
            <li>You may not live close to the event
          </ul>
          
          <a href="<?php echo site_url('register/2?ticket=day') ?>" class="btn btn-primary">Register</a>
        </div>
      </li>
  </section>

<?php elseif ($register_page == 2) : ?>

  <section class="register">
    <?php echo form_open('register/3') ?>
      <fieldset>
        <span class="ss-icon">User</span>
        <input type="text" name="name" placeholder="Name">
      </fieldset>
      
      <fieldset>
        <span class="ss-icon">Email</span>
        <input type="email" id="1" name="email[1]" onkeypress="member_field()" placeholder="Email">
      </fieldset>
      
      <div class="add_group_member">
        <fieldset>
          <span class="ss-icon">adduser</span>
          <input type="email" onkeypress="member_field()" id="2" name="email[2]" placeholder="Group Member's Email (Optional)">
        </fieldset>
      </div>
      
      <fieldset>
        <label class="radio">
          <input type="radio" name="ticket" value="camping" <?php if ($type == 'camping') echo 'checked' ?>>
          Camping Pass: €65
        </label>
        
        <label class="radio">
          <input type="radio" name="ticket" value="day" <?php if ($type == 'day') echo 'checked' ?>>
          Day Pass: €35
        </label>
      </fieldset>
      
      <fieldset>
        <input type="submit" value="Proceed to email confirmation">
      </fieldset>
    <?php echo form_close() ?>
  </section>

<?php elseif ($register_page == 4) : ?>

  <section class="register">
    <?php echo form_open('register/4') ?>
      <fieldset>
        <input type="hidden" name="email" placeholder="Email" value="<?php echo $email ?>">
      </fieldset>
      
      <?php if ($name) : ?>
      <fieldset>
        <span class="ss-icon">User</span>
        <input type="text" name="name" placeholder="Name">
      </fieldset>
      <?php endif ?>
    
      <fieldset>
        <span class="ss-icon">Key</span>
        <input type="password" name="password" placeholder="Password" required>
      </fieldset>
      
      <fieldset>
        <span class="ss-icon">Date</span>
        <input type="text" name="dob" placeholder="Date Of Birth (YYYY-MM-DD)" required>
      </fieldset>
      
      <fieldset>
        <span class="ss-icon">Home</span>
        <input type="text" name="add1" placeholder="Address (Line 1)" required>
      </fieldset>
      
      <fieldset>
        <input type="text" name="add2" placeholder="Address (Line 2)">
      </fieldset>
      
      <fieldset>
        <input type="text" name="city" placeholder="City" required>
      </fieldset>
      
      <fieldset>
        <input type="text" name="state" placeholder="State" required>
      </fieldset>
      
      <fieldset>
        <input type="text" name="country" placeholder="Country" required>
      </fieldset>
      
      <fieldset>
        <input type="text" name="zip" placeholder="Zip Code" required>
      </fieldset>
      
      <fieldset>
        <input type="submit" value="Complete Registration">
      </fieldset>
    <?php echo form_close() ?>
  </section>

<?php endif ?>

<?php
// End of File